{% extends 'myadmin/base/content_base.html' %}
{#{% extends 'myadmin/base/obj_list.html' %}#}
{% load static %}



{% block title %}
  测试删除
{% endblock %}

{% block content_header %}
  测试删除
{% endblock %}

{% block header_option_desc %}
  测试删除
{% endblock %}


{% block content %}
  <div class="row">
    <div class="col-md-12 col-xs-12 col-sm-12">
      <div class="box box-primary">
        <div class="box-header">
{#          <button class="btn btn-primary pull-right" id="btn-add-tag"></button>#}
        </div>
        <div class="box-body">
          <table class="table table-bordered table-hover">
            <thead>
            <tr>
                <th>#</th>
              <th>课件名</th>
              <th>所属课程</th>

              <th>上传时间</th>
                <th>操作</th>

            </tr>
            </thead>
            <tbody id="tbody">
            {% for obj in lesson_list %}
                <td style="width: 40px" data-url="{% url 'myadmin:lesson_update' obj.id %}"><a href="#">{{ forloop.counter }}</a></td>
                  <td>{{ obj.name }}</td>
                  <td>{{ obj.category.name }}</td>

                  <td>{{ obj.create_time }}</td>
                <td>
{#                  <button class="btn btn-xs btn-warning btn-edit">编辑</button>#}
{#                  <a href="#" class="btn btn-xs btn-warning btn-edit">编辑</a>#}
                  <button class="btn btn-xs btn-danger btn-del" data-name="{{ obj.name}}" data-id="{{ obj.id}}">删除</button>
                </td>
                <td>

                </td>
              </tr>
            {% endfor %}


            </tbody>
          </table>
        </div>
      </div>
    </div>
  </div>
      <div class="modal modal-danger fade" id="modal-delete">
        <div class="modal-dialog">
            <div class="modal-content">
                <div class="modal-header">
                    <button type="button" class="close" data-dismiss="modal" aria-label="Close">
                        <span aria-hidden="true">&times;</span></button>
                    <h4 class="modal-title">警告</h4>
                </div>
                <div class="modal-body">
                    <p>One fine body&hellip;</p>
                </div>
                <div class="modal-footer">
                    <button type="button" class="btn btn-outline pull-left" data-dismiss="modal">取消</button>
                    <button type="button" class="btn btn-outline delete-confirm">删除</button>
                </div>
            </div>
            <!-- /.modal-content -->
        </div>
        <!-- /.modal-dialog -->
    </div>

{% endblock %}

{% block script %}
        <script src="{% static 'js/course/lesson_list.js' %}"></script>
        <script src="{% static 'js/myadmin/courselesson/courselesson_detail.js' %}"></script>


{% endblock %}